<?php

namespace Controller\Options;

class Message extends \Controller\Base {

	public function actionIndex() {
		$this->setMenuPath('Options', 'Message');
		$pager = new \Lib\Core\Pager();
		$pager->currentPage = $this->getInt('page', 1);
		$message = \Data\Message::instance()->pager($pager)->findAll();
		$this->assign('message', $message);
		$this->assign('pager', $pager);
		$this->display();
	}
}